package com.hongtu.supplychain.finance.consumer.params.enums;

/**
 * Created by Administrator on 2017/6/28.
 */
public enum EWeChatBackCode {
    OPT_FAIL_CODE {
        @Override
        public String getTypeName() {
            return "失败";
        }

        @Override
        public Integer getCode() {
            return -1;
        }
    },
    OPT_SUCCESS_CODE {
        @Override
        public String getTypeName() {
            return "成功";
        }

        @Override
        public Integer getCode() {
            return 200;
        }
    },
    LOGIN_TIMEOUT_CODE {
        @Override
        public String getTypeName() {
            return "登录超时";
        }

        @Override
        public Integer getCode() {
            return -2;
        }
    },
    OFF_SITE_LOGIN_CODE {
        @Override
        public String getTypeName() {
            return "授权被覆盖";
        }

        @Override
        public Integer getCode() {
            return -3;
        }
    };

    public abstract String getTypeName();

    public abstract Integer getCode();
}
